<?php
namespace App\Traits;

use App\Models\FakeList;

Trait Trait76 {

    public function roomUsage()
    {
        $left = [
            '水耗' => random_int(100,400),
            '冷量' => random_int(100,400),
            '电能' => random_int(100,400),
        ];
        $middle = [
            '水耗' => random_int(100,400),
            '冷量' => random_int(100,400),
            '电能' => random_int(100,400),
        ];
        $right = [
            '水耗' => random_int(100,400),
            '冷量' => random_int(100,400),
            '电能' => random_int(100,400),
        ];
        $responseJson = [
            'code' => 200,
            'message' => '',
            'data' => [
                'left' => $left,
                'middle' => $middle,
                'right' => $right
            ]
        ];
        return response()->json($responseJson);
    }
}
